package com.hanggold.endpoint;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author <a href="mailto:sunmch@163.com">smc</a>
 * @date 2019-07-23 08:27
 * @since
 **/
@SpringBootApplication
public class EndpointApplication {

    public static void main(String[] args) {

        ConfigurableApplicationContext configurableApplicationContext = SpringApplication.run(EndpointApplication.class, args);

        System.out.println("启动成功.....");

//        try {
//            Thread.sleep(2000L);
//            configurableApplicationContext.close();
//            System.out.println("成功关闭服务.....");
//
//        } catch (InterruptedException e) {
//            e.printStackTrace();
//        }
    }

}
